package com.smart.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 记录违规情况的表
 * </p>
 *
 * @author Cookies
 * @since 2024-05-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("violation_records")
@ApiModel(value="ViolationRecords对象", description="记录违规情况的表")
public class ViolationRecords implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "违规记录的唯一标识符")
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "违规的类型")
    private String violationType;

    @ApiModelProperty(value = "违规发生的地点")
    private String violationLocation;

    @ApiModelProperty(value = "违规人员的标识符")
    private String violatorUid;

    @ApiModelProperty(value = "违规发生的日期和时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime violationDate;

    @ApiModelProperty(value = "对违规情况的详细描述")
    private String description;

    @ApiModelProperty(value = "违规情况处理结果")
    private Integer status;


}
